import Head from 'next/head'
import Script from 'next/script'
import Image from 'next/image'
import PageLoading from './PageLoading'
import Menu from './Menu'
import RightBar from './RightBar'

export default function Layout ({children}) {
  return (
    <>
      <div className="">
        <Head>
          <meta charset="UTF-8" />
          <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1" />
          <meta name="apple-mobile-web-app-capable" content="yes" />
          <meta http-equiv="X-UA-Compatible" content="IE=edge" />
          <meta http-equiv="Access-Control-Allow-Origin" content="*" />
          <link data-n-head="ssr" rel="icon" type="image/x-icon" href="" />
          <link rel="icon" href="/favicon.svg" />

          <title>REDICI Ventures - Unlock Your Financial Future</title>
          <meta name="description" content="Unlock Your Financial Future with REDICI. At REDICI, we are committed to helping investors unlock the potential of crypto assets and gain a comprehensive insight into the crypto world that will shape the coming decades." />
          <meta name="keywords" content="REDICI,Ventures,Capital,Web3,Blockchain,Crypto,AIGC,Finance,Financial" />

          <meta property="og:url" content="https://redici.xyz" />
          <meta property="og:type" content="website" />
          <meta property="og:title" content="REDICI Ventures - Unlock Your Financial Future" />
          <meta property="og:description" content="Unlock Your Financial Future with REDICI. At REDICI, we are committed to helping investors unlock the potential of crypto assets and gain a comprehensive insight into the crypto world that will shape the coming decades." />
          <meta property="og:image" content="https://redici.xyz/preview.png" />

          <meta name="twitter:card" content="summary_large_image" />
          <meta property="twitter:url" content="https://redici.xyz" />
          <meta name="twitter:title" content="REDICI Ventures - Unlock Your Financial Future" />
          <meta name="twitter:description" content="Unlock Your Financial Future with REDICI. At REDICI, we are committed to helping investors unlock the potential of crypto assets and gain a comprehensive insight into the crypto world that will shape the coming decades." />
          <meta name="twitter:image" content="https://redici.xyz/preview.png" />
          <script dangerouslySetInnerHTML={{ __html: `
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', 'G-64YEXRE9PM');
          `}} />
        </Head>
        <Script
          id="googletagmanager"
          src="https://www.googletagmanager.com/gtag/js?id=G-64YEXRE9PM"
        />
        <main className="w-screen h-screen overflow-hidden bg-[#D6C9C1]">
          {children}
        </main>
        <Menu/>
        <RightBar/>
      </div>
      <PageLoading/>
    </>
  )
}
